package com.ruoyi.mobile.api;


import com.ruoyi.common.core.domain.AjaxResults;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.qsng.domain.KLearningHome;
import com.ruoyi.qsng.service.ITMessagePushService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 消息推送控制器
 *
 * @author gk
 * @date 2023-08-14
 */
@Api(tags = "消息推送控制器")
@RestController
@RequestMapping
public class MessagePushController {


    @Autowired
    private ITMessagePushService tMessagePushService;


    /**
     * 获取推送消息详情
     */
    @ApiOperation(value = "获取推送消息详情")
    @GetMapping(value = "/app/getMessagePushInfo/{id}")
    public AjaxResults getInfo(@PathVariable("id") String id)
    {
        return AjaxResults.success(tMessagePushService.selectTMessagePushById(Long.valueOf(id)));
    }
}
